package com.xuecheng.auth.feignclient.checkcode;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="checkcode",path="/checkcode",contextId="checkCode",
fallbackFactory=CheckCodeClientFactory.class)
public interface CheckCodeClient {
    @PostMapping("/verify")
    Boolean verify(@RequestParam("key") String key,@RequestParam("code") String code);
}
